package shared;

import java.io.Serializable;

public class Stock implements Serializable
{
	
	
	private String  name;
	private String  exchange;
	private double  price;
	private int     numberOfShares;
	
	@Override
	public String toString(){
		String s = "Stock Name:\t"+ this.getName() + "\n";
		      s += "Exchange:\t"+this.getExchange()+"\n";
		      s += "Price:\t"+this.getPrice()+"\n";
		      s += "Num of Shares:\t"+this.getNumberOfShares()+"\n";
		return s;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getNumberOfShares() {
		return numberOfShares;
	}
	public void setNumberOfShares(int numberOfShares) {
		this.numberOfShares = numberOfShares;
	}
	public String getExchange() {
		return exchange;
	}
	public void setExchange(String exchange) {
		this.exchange = exchange;
	}
}
